package com.qwz.example;

import java.util.ArrayList;
import java.util.List;
/**  
* @Description: 测试适配器客户端
* @Package com.qwz.example.Client
* @author Qiuwuzhi
* @date 2019/12/17 14:39
* @version V1.0
*/
public class Client {
    public static void main(String[] args){
        LogModel logModel = new LogModel();
        List<LogModel> list = new ArrayList<LogModel>();
        list.add(logModel);
        //创建文件日志的操作类
        LogFileOperateApi api = new LogFileOpertation();
        //创建db的接口对象
        LogDBOperateApi dbOperateApi = new Adapter(api);

        dbOperateApi.createLog(logModel);

        List<LogModel> allLog = dbOperateApi.getAllLog();
    }
}
